<?php
namespace app\api\controller;

class Cate
{
   //分类列表接口
   public function index() {
       $CateRes = array();
       $_CateRes = model('Cate')->field('*')->order('id asc')->where('status', 1)->select()->toArray();
       $CateRes = sliceArray($_CateRes,4,2);
    //    dump($CateRes); die;
       $data = ['data'=>$CateRes, 'status'=> 0];
       return json($data);
   }
}
